public class Example03 {
    public static void main(String[] args) {
        int i = 20;    //定义 int类型变量
        long l = i;    //将变量i的值赋给 1
        float f = l;    //将变量1的值赋给f
        double d = f;    //将变量f的值赋给d
        System.out.println("long类型变量1:" + l);
        System.out.println("float类型变量f:" + f);
        System.out.println("double类型变量d:" + d);
    }
}
